@model IEnumerable<Vms.Web.Models.USER>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create", new { }, new { @class = "btn btn-primary" })
</p>
<table class="table table-bordered table-striped">
    <tr>
        
        <th>
            UserName
        </th>
        <th>
            FullName
        </th>
    
        <th>
            Email
        </th>
        <th>
            Tel
        </th>
        <th>
            Role
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        
        <td>
			@item.UserName
        </td>
        <td>
			@item.FullName
        </td>
    
        <td>
			@item.Email
        </td>
        <td>
			@item.Tel
        </td>
        <td>
			@item.Role
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |
            @Html.ActionLink("Details", "Details", new { id=item.Id }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.Id })
        </td>
    </tr>
}

</table>


